package com.yihu.cms.util;

import java.io.File;
import java.util.List;

public class FileUtils {

	public static List<String> getFileUrlByType(String type, String path) {
		File file = new File(path);
		File[] tempList = file.listFiles();
		for (int i = 0; i < tempList.length; i++) {
			if (tempList[i].isFile()) {
				if(tempList[i].getPath().endsWith(type)){
					
				}
				System.out.println();
			}
			if (tempList[i].isDirectory()) {
				System.out.println("文件夹：" + tempList[i]);
			}
		}
		return null;
	}
}
